﻿/*******************************************************************************
* Copyright (C) JuCheap
* 
* Author: JuCheap
* Create Date: 10/18/2019 11:54:03
* Description:  
* 
* Revision History:
* Date         Author               Description
*
*********************************************************************************/

using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 用户基本资料更新模型
    /// </summary>
    public class UserProfileUpdateDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Display(Name = "邮箱")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(100, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Email { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Display(Name = "联系电话")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Phone { get; set; }

        /// <summary>
        /// 座右铭
        /// </summary>
        [Display(Name = "座右铭")]
        [MaxLength(200, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Motto { get; set; }
    }
}
